//引用管理员的模型
let adminModel = require("../models/adminModels");

module.exports.insert = async function(admin){
    // console.log("userModel:",userModel.insert);
    return await adminModel.create(admin);
}
module.exports.findByUsernameAndPwd = async function(admin){
    return await adminModel.find(admin);
}
